﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Negocio.Osd;

namespace PresentacionWeb
{
    public partial class Prueba : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = DateTime.Now.ToString();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Label2.Text = "Valor1";
            osdSeguridad seg = osdSeguridad.GetInstance(); 
            
                if (seg.CompruebaNick(TextBox1.Text))
                {
                    Label2.Text = "Existe un valor en la base de datos";
                }
                else 
                {
                    Label2.Text = "NO Existe un valor en la base de datos";

                }
            

        }
    }
}
